#ifndef _TASK_HPP
#define _TASK_HPP

#include "Protocol.hpp"

class Task
{
  using CallBack_t = CallBack;
  private:
      int sock;
      CallBack_t handler;

  public:
      Task(int _sock) 
        :sock(_sock)
      {}

      void ProcessOn()
      {
          handler(sock);
      }
  
      Task(){}
      ~Task(){}
};

#endif
